class Employee:
    count=0
    def __init__(self,name):
        self.name=name
        Employee.count+=1
    def sayHello(self):
        print("sayhello")

a=Employee("张三")
a1=Employee("李四")
a2=Employee("王五")
a.sayHello()
a1.sayHello()
a2.sayHello()
print("最后实例化的总对象数为：",Employee.count)